package com.factory.factorymethod.pizzastore.order;

import com.factory.factorymethod.pizzastore.pizza.BjCheesePizza;
import com.factory.factorymethod.pizzastore.pizza.BjPepperPizza;
import com.factory.factorymethod.pizzastore.pizza.Pizza;

/**
 * @author zhupanlin
 * @version 1.0
 * @description: TODO
 * @date 2024/4/13 12:26
 */
public class BjOrderPizza extends OrderPizza{
    @Override
    Pizza createPizza(String orderType) {
        Pizza pizza = null;
        if (orderType.equals("cheese")){
            pizza = new BjCheesePizza();
        }else if (orderType.equals("pepper")){
            pizza = new BjPepperPizza();
        }
        return pizza;
    }
}
